From: kaf24@firebug.cl.cam.ac.uk Date: Thu, 8 Jun 2006 15:51:39 +0000 (+0100) Subject: [XEN] Reduce default maximum allocation order from 2^20 pages to 2^11. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15972^2~33 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=48cc0bd192b300119bb86158c9f0daf0f0c49be1;p=xen.git [XEN] Reduce default maximum allocation order from 2^20 pages to 2^11. On x86 this corresponds to a maximum aligned contiguous allocation of 8MB. This can be overridden by architectures if need be. Signed-off-by: Keir Fraser --- diff --git a/xen/include/xen/mm.h b/xen/include/xen/mm.h index 327758f2c2..e33fbc2e52 100644 --- a/xen/include/xen/mm.h +++ b/xen/include/xen/mm.h @@ -68,8 +68,11 @@ unsigned long avail_domheap_pages(void); #define ALLOC_DOM_DMA 1 -/* Up to 2^20 pages can be allocated at once. */ -#define MAX_ORDER 20 +#ifdef CONFIG_PAGEALLOC_MAX_ORDER +#define MAX_ORDER CONFIG_PAGEALLOC_MAX_ORDER +#else +#define MAX_ORDER 11 /* 2^11 contiguous pages */ +#endif /* Automatic page scrubbing for dead domains. */ extern struct list_head page_scrub_list;